<div ng-controller="BasicsCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/basics/list">{{'基础设置'| translate}}</a></li>
        <li class="active">
            {{"添加模板"|translate}}
        </li>
    </ul>
    <form name="itemForm" novalidate>
        <div class="control-group">
            <label class="control-label v-top"><b style="color: #f00;">*</b>模板名称：</label>
            <div class="controls">
                <input ng-model="item.title"  value="" name="sale_num" class="ng-pristine ng-untouched ng-valid">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top"><b style="color: #f00;">*</b>类型：</label>
            <div class="controls">
                <basics-type ng-model="item.status" dft="1"> </basics-type>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" id="submit" class="sui-btn btn-primary" ng-disabled="!( item.title && item.status ) " ng-click="addTemplate($event)">
                    <span>{{'save' | translate}}</span>
                </button>
            </div>
        </div>
    </form>